package com.deluxelx.rmo.common.result;

import com.deluxelx.rmo.common.enums.ResponseCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> implements Serializable {

    private static final long serialVersionUID = -3826891916056780628L;

    /**
     * 错误码
     */
    protected String code;

    /**
     * 错误提示，用户可阅读
     */
    protected String info;

    /**
     * 返回数据
     */
    protected T data;

    public Result(String code, String info) {
        this.code = code;
        this.info = info;
    }

}
